package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_user_group_mapping")
public class SysUserGroupMapping extends SuperEntity {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 分组id
     */
	@TableField("group_id")
	private Integer groupId;
	@TableField("group_code")
	private String groupCode;
    /**
     * 分组名称
     */
	@TableField("group_name")
	private String groupName;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 用户编码
     */
	@TableField("user_code")
	private String userCode;
    /**
     * 用户名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 创建人id
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Integer getId() {
		return id;
	}

	public SysUserGroupMapping setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public SysUserGroupMapping setGroupId(Integer groupId) {
		this.groupId = groupId;
		return this;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public SysUserGroupMapping setGroupCode(String groupCode) {
		this.groupCode = groupCode;
		return this;
	}

	public String getGroupName() {
		return groupName;
	}

	public SysUserGroupMapping setGroupName(String groupName) {
		this.groupName = groupName;
		return this;
	}

	public Integer getUserId() {
		return userId;
	}

	public SysUserGroupMapping setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	public String getUserCode() {
		return userCode;
	}

	public SysUserGroupMapping setUserCode(String userCode) {
		this.userCode = userCode;
		return this;
	}

	public String getUserName() {
		return userName;
	}

	public SysUserGroupMapping setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysUserGroupMapping setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysUserGroupMapping setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String ID = "id";

	public static final String GROUP_ID = "group_id";

	public static final String GROUP_CODE = "group_code";

	public static final String GROUP_NAME = "group_name";

	public static final String USER_ID = "user_id";

	public static final String USER_CODE = "user_code";

	public static final String USER_NAME = "user_name";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	@Override
	public String toString() {
		return "SysUserGroupMapping{" +
			", id=" + id +
			", groupId=" + groupId +
			", groupCode=" + groupCode +
			", groupName=" + groupName +
			", userId=" + userId +
			", userCode=" + userCode +
			", userName=" + userName +
			", createBy=" + createBy +
			", createTime=" + createTime +
			"}";
	}
}
